package com.wang.loanassembly.controller;


import com.wang.commons.result.Result;
import com.wang.loanassembly.param.repayPlan.AddRepayPlan;
import com.wang.loanassembly.param.repayPlan.ChangeRepayPlan;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author lichacha
 * @since 2022-01-04
 */
@Controller
@RequestMapping("/repaymentSchedule")
@Api(tags = "还款计划接口类")
public class RepaymentScheduleController {
    /**
     * 修改贷款计划
     * 根据用户id，贷款id，贷款时长id
     */
    @ApiOperation("修改用户还款计划")
    @PostMapping("changrRepayPlan")
    public Result changeRepayPlan(@RequestBody ChangeRepayPlan crp ){
        return  null;
    }

    /**
     * 新增还款计划
     */
    @ApiOperation("新增还款计划")
    @PutMapping("addRepayPlan")
    public Result addRepayPlan(@RequestBody AddRepayPlan arp ){

        return null;
    }
}

